Disable LTO for host (plugin, build script) builds
authorMikko Perttunen <cyndis@kapsi.fi>
Sun, 1 Mar 2015 22:53:46 +0000 (00:53 +0200)
committerMikko Perttunen <cyndis@kapsi.fi>
Mon, 2 Mar 2015 17:14:50 +0000 (19:14 +0200)
commit8bff726e38f99d160c8c779782cb86d5fe3b5950
treec1692935b791c4ca07bc12c07ce5deb92579e977
parentb1c005dff2ffdf1a9346593f1913159d36186bd1
Disable LTO for host (plugin, build script) builds

When building host code, -C prefer-dynamic is passed, but that option
is mutually exclusive with -C lto. Thus when LTO is specified, rustc
errors out.
src/cargo/ops/cargo_rustc/mod.rs